<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Module: ActionView::Helpers::FormOptionsHelper</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Module</strong></td>
          <td class="class-name-in-header">ActionView::Helpers::FormOptionsHelper</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/plugins/brazilian-rails/lib/action_view_portuguese_rb.html">
                vendor/plugins/brazilian-rails/lib/action_view_portuguese.rb
                </a>
        <br />
            </td>
        </tr>

        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000042">option_estados_for_select</a>&nbsp;&nbsp;
      <a href="#M000043">option_uf_for_select</a>&nbsp;&nbsp;
      <a href="#M000040">select_estado</a>&nbsp;&nbsp;
      <a href="#M000041">select_uf</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">


    <div id="constants-list">
      <h3 class="section-bar">Constants</h3>

      <div class="name-list">
        <table summary="Constants">
        <tr class="top-aligned-row context-row">
          <td class="context-item-name">ESTADOS_BRASILEIROS</td>
          <td>=</td>
          <td class="context-item-value">[[&quot;Acre&quot;, &quot;AC&quot;],     [&quot;Alagoas&quot;, &quot;AL&quot;],     [&quot;Amapá&quot;, &quot;AP&quot;],     [&quot;Amazonas&quot;, &quot;AM&quot;],     [&quot;Bahia&quot;, &quot;BA&quot;],     [&quot;Ceará&quot;, &quot;CE&quot;],     [&quot;Distrito Federal&quot;, &quot;DF&quot;],     [&quot;Espírito Santos&quot;, &quot;ES&quot;],     [&quot;Goiás&quot;, &quot;GO&quot;],     [&quot;Maranhão&quot;, &quot;MA&quot;],     [&quot;Mato Grosso&quot;, &quot;MT&quot;],     [&quot;Mato Grosso do Sul&quot;, &quot;MS&quot;],     [&quot;Minas Gerais&quot;, &quot;MG&quot;],     [&quot;Pará&quot;, &quot;PA&quot;],     [&quot;Paraíba&quot;, &quot;PB&quot;],     [&quot;Paraná&quot;, &quot;PR&quot;],     [&quot;Pernambuco&quot;, &quot;PE&quot;],     [&quot;Piauí&quot;, &quot;PI&quot;],     [&quot;Rio de Janeiro&quot;, &quot;RJ&quot;],      [&quot;Rio Grande do Norte&quot;, &quot;RN&quot;],     [&quot;Rio Grande do Sul&quot;, &quot;RS&quot;],     [&quot;Rondônia&quot;, &quot;RO&quot;],     [&quot;Roraima&quot;, &quot;RR&quot;],     [&quot;Santa Catarina&quot;, &quot;SC&quot;],     [&quot;São Paulo&quot;, &quot;SP&quot;],     [&quot;Sergipe&quot;, &quot;SE&quot;],     [&quot;Tocantins&quot;, &quot;TO&quot;]</td>
        </tr>
        </table>
      </div>
    </div>



      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000042" class="method-detail">
        <a name="M000042"></a>

        <div class="method-heading">
          <a href="#M000042" class="method-signature">
          <span class="method-name">option_estados_for_select</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000042-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/brazilian-rails/lib/action_view_portuguese.rb, line 104</span>
104:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option_estados_for_select</span>
105:     <span class="ruby-identifier">html</span> = <span class="ruby-value str">&quot;&quot;</span>
106:     <span class="ruby-identifier">html</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">options_for_select</span> <span class="ruby-constant">ESTADOS_BRASILEIROS</span>
107:     <span class="ruby-identifier">html</span>
108:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000043" class="method-detail">
        <a name="M000043"></a>

        <div class="method-heading">
          <a href="#M000043" class="method-signature">
          <span class="method-name">option_uf_for_select</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000043-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/brazilian-rails/lib/action_view_portuguese.rb, line 110</span>
110:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">option_uf_for_select</span>
111:     <span class="ruby-identifier">html</span> = <span class="ruby-value str">&quot;&quot;</span>
112:     <span class="ruby-identifier">html</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">options_for_select</span> <span class="ruby-constant">ESTADOS_BRASILEIROS</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">nome</span>,<span class="ruby-identifier">sigla</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sigla</span>}
113:     <span class="ruby-identifier">html</span>
114:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000040" class="method-detail">
        <a name="M000040"></a>

        <div class="method-heading">
          <a href="#M000040" class="method-signature">
          <span class="method-name">select_estado</span><span class="method-args">(object, method, options = {}, html_options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000040-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/brazilian-rails/lib/action_view_portuguese.rb, line 96</span>
96:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_estado</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
97:     <span class="ruby-identifier">select</span> <span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-constant">ESTADOS_BRASILEIROS</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>
98:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000041" class="method-detail">
        <a name="M000041"></a>

        <div class="method-heading">
          <a href="#M000041" class="method-signature">
          <span class="method-name">select_uf</span><span class="method-args">(object, method, options = {}, hml_options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000041-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/plugins/brazilian-rails/lib/action_view_portuguese.rb, line 100</span>
100:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select_uf</span>(<span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">hml_options</span> = {})
101:     <span class="ruby-identifier">select</span> <span class="ruby-identifier">object</span>, <span class="ruby-identifier">method</span>, <span class="ruby-constant">ESTADOS_BRASILEIROS</span>.<span class="ruby-identifier">collect</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">estado</span>, <span class="ruby-identifier">sigla</span><span class="ruby-operator">|</span> <span class="ruby-identifier">sigla</span>}
102:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>